package com.happystudy.message;

import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public class ErrorMessageType {
    public static final Integer SUCCESS_CODE=000000;
    public static final String SUCCESS_MSG = "success";

    public static final Integer UNIVERSITY_NOT_FOUND_CODE = 000001;
    public static final String UNIVERSITY_NOT_FOUND_MSG = "University not found";

    public static final Integer USERNAME_OR_PASSWORD_INCORRECT_CODE = 0000002;
    public static final String USERNAME_OR_PASSWORD_INCORRECT_MSG = "incorrect username or password";

    public static final Integer USER_NOT_LOGIN_CODE = 0000003;
    public static final String USER_NOT_LOGIN_MSG = "current user is not logged in";

    public static final Integer CURRENT_COURSE_HAD_EXISTS_CODE = 0000004;
    public static final String CURRENT_COURSE_HAD_EXISTS_MSG = "The current course has been created";

    public static final Integer CREATE_COURSE_ERROR_CODE = 0000005;
    public static final String CREATE_COURSE_ERROR_MSG = "create course error!";

    public static final Integer CURRENT_TOPICNAME_IS_EXIST_CODE = 0000006;
    public static final String CURRENT_TOPICNAME_IS_EXIST_MSG = "topic existed";

    public static final Integer INSERT_DATA_FAIL_CODE = 0000007;
    public static final String INSERT_DATA_FEIL_MSG = "insert data fail";


    public static final Integer COURSE_NOT_EXIST_CODE = 8;
    public static final String COURSE_NOT_EXIST_MSG = "course not exist!";

    public static final Integer WRONG_COURSE_CODE = 9;
    public static final String WRONG_COURSE_MSG = "wrong course code!";

    public static final Integer REJOIN_COURSE_CODE = 10;
    public static final String REJOIN_COURSE_MSG = "do not rejoin!";

    public static final Integer UPLOAD_FAIL_CODE = 11;
    public static final String UPLOAD_FAIL_MSG = "upload failed!";
}
